import baseConfig from "./baseConfig";
import i18n from "@/locales/index.js";

const { t } = i18n.global;

export class Desiccant extends baseConfig {
  name = t("material.desiccant");
  type = "Desiccant";
  picName = "";
  weight = 100;
  // weightUp = 5;
  // weightDown = 5;
  desiccantType = 0; //干燥剂规格
  desiccantColor = "";
  desiccantColorHeight = 0;
  desiccantPlaceMethod = 0; //0-正常摆放 1-交替排放 2-品字摆放
  x1 = 0; //交替摆放
  y1 = 0;
  constructor(obj) {
    super();
    for (let key in obj) {
      this[key] = obj[key];
    }
  }
}

let desiccant1 = new Desiccant({
  length: 40,
  width: 80,
  weight: 5,
  picName: "desiccant-5",
  name: t("material.desiccant") + " 1",
  description: "5g " + t("material.desiccant"),
});
let desiccant2 = new Desiccant({
  length: 50,
  width: 80,
  weight: 10,
  picName: "desiccant-10",
  name: +t("material.desiccant") + " 2",
  description: "10g " + t("material.desiccant"),
});
let desiccant3 = new Desiccant({
  length: 60,
  width: 80,
  weight: 33,
  picName: "desiccant-33",
  name: t("material.desiccant") + " 3",
  description: "33g " + t("material.desiccant"),
});

export default [desiccant1, desiccant2, desiccant3];
